/*   1:    */ package com.atomikos.datasource.xa.session;
/*   2:    */ 
/*   3:    */ import com.atomikos.datasource.xa.XATransactionalResource;
/*   4:    */ import com.atomikos.icatch.CompositeTransaction;
/*   5:    */ import com.atomikos.icatch.HeuristicMessage;
/*   6:    */ import javax.transaction.xa.XAResource;
/*   7:    */ 
/*   8:    */ abstract class TransactionContextStateHandler
/*   9:    */ {
/*  10:    */   private XATransactionalResource resource;
/*  11:    */   private XAResource xaResource;
/*  12:    */   
/*  13:    */   TransactionContextStateHandler(XATransactionalResource resource, XAResource xaResource)
/*  14:    */   {
/*  15: 55 */     this.resource = resource;
/*  16: 56 */     this.xaResource = xaResource;
/*  17:    */   }
/*  18:    */   
/*  19:    */   XATransactionalResource getXATransactionalResource()
/*  20:    */   {
/*  21: 61 */     return this.resource;
/*  22:    */   }
/*  23:    */   
/*  24:    */   XAResource getXAResource()
/*  25:    */   {
/*  26: 66 */     return this.xaResource;
/*  27:    */   }
/*  28:    */   
/*  29:    */   abstract TransactionContextStateHandler checkEnlistBeforeUse(CompositeTransaction paramCompositeTransaction, HeuristicMessage paramHeuristicMessage)
/*  30:    */     throws InvalidSessionHandleStateException, UnexpectedTransactionContextException;
/*  31:    */   
/*  32:    */   abstract TransactionContextStateHandler sessionClosed();
/*  33:    */   
/*  34:    */   abstract TransactionContextStateHandler transactionTerminated(CompositeTransaction paramCompositeTransaction);
/*  35:    */   
/*  36:    */   boolean isSuspendedInTransaction(CompositeTransaction ct)
/*  37:    */   {
/*  38:112 */     return false;
/*  39:    */   }
/*  40:    */   
/*  41:    */   TransactionContextStateHandler transactionSuspended()
/*  42:    */     throws InvalidSessionHandleStateException
/*  43:    */   {
/*  44:123 */     throw new InvalidSessionHandleStateException("Could not suspend in state: " + this);
/*  45:    */   }
/*  46:    */   
/*  47:    */   TransactionContextStateHandler transactionResumed()
/*  48:    */     throws InvalidSessionHandleStateException
/*  49:    */   {
/*  50:134 */     throw new InvalidSessionHandleStateException("Could not resume in state: " + this);
/*  51:    */   }
/*  52:    */   
/*  53:    */   boolean isInTransaction(CompositeTransaction tx)
/*  54:    */   {
/*  55:145 */     return false;
/*  56:    */   }
/*  57:    */   
/*  58:    */   boolean isInactiveInTransaction(CompositeTransaction tx)
/*  59:    */   {
/*  60:156 */     return false;
/*  61:    */   }
/*  62:    */ }


/* Location:           C:\myfile\mysoft\apache-maven-3.5.0-bin\apache-maven-3.5.0\myrep\com\atomikos\transactions-jta\3.7.0\transactions-jta-3.7.0.jar
 * Qualified Name:     com.atomikos.datasource.xa.session.TransactionContextStateHandler
 * JD-Core Version:    0.7.0.1
 */